<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>图片设置透明度</title>
		<style type="text/css">
			#one {
				width: 20.625rem;
				margin: 0.625rem auto;
				border: solid 1px #FF6666;
			}
			.one {
				opacity: 1;
			}
			.two {
				opacity: 0.8;
			}
			.three {
				opacity: 0.5;
			}
			.four {
				opacity: 0.2;
			}
		</style>
	</head>
	<body>
		<div id="one">
			<img src="./Lighthouse.jpg" width="160" height="160" class="one">
			<img src="./Lighthouse.jpg" width="160" height="160" class="two">
			<img src="./Lighthouse.jpg" width="160" height="160" class="three">
			<img src="./Lighthouse.jpg" width="160" height="160" class="four">
		</div>
	</body>
</html>
